import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

// https://juejin.cn/post/6985725946598785055   参考  https://router.vuejs.org/zh/
export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      // component: () => import('@/components/HelloWorld'),
      // component: resolve => (require(['@/components/HelloWorld']), resolve),
      component: resolve => (['@/components/HelloWorld'], resolve),
    },
  ],
});
